package com.hhkj.api.invoice.model.req;

import com.hhkj.admin.invoice.model.dopo.InvoiceTitleDo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * ApiInvoiceTitleReq
 *
 * @author zheng
 * @since 2023/11/4 23:16
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ApiInvoiceTitleReq extends InvoiceTitleDo {

    @NotBlank(message = "类型不能为空")
    @Override
    public String getTypeCode() {
        return super.getTypeCode();
    }

    @NotBlank(message = "抬头不能为空")
    @Override
    public String getTitle() {
        return super.getTitle();
    }

    @NotBlank(message = "税号不能为空")
    @Override
    public String getTaxIdentificationNumber() {
        return super.getTaxIdentificationNumber();
    }
}
